// Haxzs Audio Server
// made by omghaxzs
// 2010

#ifndef DEST_H
#define DEST_H

#include "main.h"
#include "client.h"

class dest {
public:
	boost::thread m_MonitorThread, m_ClientThread;
	std::vector<client*> clients;
	tcp::socket clientsocket;
	tcp::acceptor listensocket;
	tcp::endpoint endpoint;
	std::string data;

	dest();
	~dest(){};

	void listenForClients();
	void setUpDestServer();
	void monitorSource();
	void monitorClients();
	void disconnectAllClients();

};

extern dest* d;

#endif